<template>
  <button @click="changeName">换名字</button>
  <div>{{ name }}</div>
  <a :href="url">点击我</a>
</template>
<script setup>
import { ref } from "vue";

const url = ref("https://baidu.com");

const name = ref("宫保鸡丁");
const changeName = () => {
  name.value = "鱼香肉丝";
  url.value = "https://qq.com";
};
</script>
<style></style>
